Is it possible to mark a text in DOORS object as hyperlink to another object?

I want to mark a Piece of text within a DOORS object cell and Format it as Hyperlink which

shall refer to another object.

Does anyone have an idea or is this only possible by normal links?


MarcoLuk - Tue Oct 17 06:47:30 EDT 2017

Re: Is it possible to mark a text in DOORS object as hyperlink to another object?
EHcnck - Tue Oct 17 07:39:37 EDT 2017

https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014226102&ps=25

Re: Is it possible to mark a text in DOORS object as hyperlink to another object?
PekkaMakinen - Wed Oct 18 00:44:41 EDT 2017

Yes it is possible in a way, with RTF link. See example below. It works at least with DOORS http-links (with DOORS Web Access) but have not tried it with doors://-protocol links. The RTF in LinkText  in the example codei s the result of researching how links in Microsoft Word worked after being pasted into DOORS, so it is not based on any deep knowledge about RTF, just trials and experimentation. Also if your text in DOORS has OLE objects or other RTF content this approach might mess up that.

// Example to create a RTF link in DOORS
Object o = current
string NameText = "Example link"
string LinkText = "http://www.bbc.com/"
string ObjectText = o."Object Text"
LinkText = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1035\\viewkind4\\uc1\\pard\\lang1033\\f0\\fs20{\\field{\\*\\fldinst{HYPERLINK \"" LinkText "\" }}{\\fldrslt{\\ul " NameText "}}}\\ulnone\\f0\\fs20}"

// Add RTF link to current object's Object Text
if ((ObjectText > "") && (canModify(o."Object Text")))
  {
     o."Object Text" = richText(LinkText " " ObjectText "")
  }